package com.park.service.impl;

import com.park.bean.AttractsType;
import com.park.bean.TicketsType;
import com.park.dao.IAttractsTypeDao;
import com.park.service.IAttractsTypeService;
import com.park.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttractsTypeServiceImpl implements IAttractsTypeService {
    @Autowired
    IAttractsTypeDao dao;

    @Override
    public List<AttractsType> getAttractsType(AttractsType attractsType, Page page) {
        return dao.getAttractsType(attractsType,page);
    }

    @Override
    public int getCount(AttractsType attractsType) {
        return dao.getCount(attractsType);
    }

    @Override
    public int delAttractsType(int id) {
        return dao.delAttractsType(id);
    }

    @Override
    public int postAttractsType(AttractsType attractsType) {
        return dao.postAttractsType(attractsType);
    }

    @Override
    public int editAttractsType(AttractsType attractsType) {
        return dao.editAttractsType(attractsType);
    }
}
